projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f845f2c
)
(compile_range): Avoid warning in casts for range_start/end.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 31 Jul 1994 20:59:32 +0000
(20:59 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 31 Jul 1994 20:59:32 +0000
(20:59 +0000)
src/regex.c
patch
|
blob
|
history
diff --git
a/src/regex.c
b/src/regex.c
index 88ccc69a208c7b8814cc6bd03facc406c94b0351..82ab3d0873ca299e9cd4419e646f1afaae877423 100644
(file)
--- a/
src/regex.c
+++ b/
src/regex.c
@@
-2706,8
+2706,8
@@
compile_range (p_ptr, pend, translate, syntax, b)
We also want to fetch the endpoints without translating them; the
appropriate translation is done in the bit-setting loop below. */
- range_start = ((unsigned char *) p)[-2];
- range_end = ((unsigned char *) p)[0];
+ range_start = ((unsigned c
onst c
har *) p)[-2];
+ range_end = ((unsigned c
onst c
har *) p)[0];
/* Have to increment the pointer into the pattern string, so the
caller isn't still at the ending character. */